:root {
    --primary-color: #1989fa;
    --primary-dark: #0056b3;
    --secondary-color: #67C23A;
    --danger-color: #F56C6C;
    --neutral-color: #999;
    --light-bg: #f8f9fa;
    --border-color: #ebebeb;
    --text-color: #333;
    --text-light: #666;
    --font-main: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --font-mono: "Consolas", "Source Code Pro", monospace;
}
body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* 页面布局结构 */
.site-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}
/* 页眉样式优化 */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    position: relative;
    z-index: 10;
}
.site-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}
.page-subtitle {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    font-weight: 500;
}
.header-info {
    margin: 0.6rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.weather-info, .date-info {
    display: inline-flex;
    align-items: center;
}
.weather-info::before {
    content: "☁️";
    margin-right: 5px;
}
.date-info::before {
    content: "📅";
    margin-right: 5px;
}
/* 面包屑导航 */
.breadcrumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #6c757d;
}

/* 导航菜单优化 */
.main-navigation {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    scrollbar-width: thin;
    position: relative;
}
.main-navigation::-webkit-scrollbar {
    height: 4px;
}
.main-navigation::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.nav-item {
    flex: 1;
    padding: 0.8rem 1.2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    min-width: 80px;
}
.nav-item:hover {
    background-color: #f5f9ff;
    color: var(--primary-dark);
}
.nav-item-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}
.nav-item-active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}
/* 主要内容区 */
.page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.content-wrapper {
    padding: 1.2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin: 1rem 0.8rem;
    flex: 1;
}
.section-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}
.data-grid-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
}
/* 表格样式优化 */
.data-display {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.data-header {
    background: linear-gradient(to right, #f0f5ff, #e8f1ff);
}
.data-header-cell {
    border: 1px solid #e0e5f0;
    padding: 0.9rem 0.6rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
}
.data-header-cell::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(25,137,250,0.2);
}
.data-row {
    transition: background-color 0.2s ease;
}
.data-row:nth-child(even) {
    background-color: #f9fbff;
}
.data-row:hover {
    background-color: #f0f7ff;
}
.data-cell {
    border: 1px solid #eaedf5;
    padding: 0.8rem 0.6rem;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.data-footer {
    background: linear-gradient(to right, #f0f5ff, #e8f1ff);
    font-weight: bold;
}
.data-footer-cell {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e5f0;
}
/* 特殊单元格样式 */
.prediction-correct {
    color: var(--secondary-color);
    font-weight: 500;
}
.prediction-incorrect {
    color: var(--danger-color);
    font-weight: 500;
}
.prediction-pending {
    color: var(--neutral-color);
    font-style: italic;
}
.number-display {
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.accuracy-high {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}
.accuracy-low {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 1.1rem;
}
.expect-id {
    font-weight: 600;
}
.timestamp {
    font-size: 0.85rem;
    color: var(--text-light);
}
.sum-value {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}
.sum-value::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background-color: rgba(25,137,250,0.2);
    border-radius: 2px;
}
/* 相关推荐区域 */
.related-content {
    border-top: 1px dashed var(--border-color);
}
.related-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.related-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.related-item {
    padding: 10px;
    background-color: #f9fbff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}
.related-item:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
/* 页脚样式 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 12px 12px 0 0;
}
.footer-content {
    text-align: center;
}
.copyright-text {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.site-description {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0.5rem auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 1rem 0;
}
.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}
/* 页面加载动画 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(25,137,250,0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 响应式优化 */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.4rem;
    }
    .page-subtitle {
        font-size: 1.1rem;
    }
    .nav-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    .data-display {
        font-size: 0.85rem;
    }
    .data-header-cell, .data-cell {
        padding: 0.6rem 0.4rem;
    }
    .related-items {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .site-footer {
        padding: 1rem;
    }
}
/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}
.back-to-top.visible {
    opacity: 0.8;
}
.back-to-top:hover {
    opacity: 1;
}
